/* ===== BODY PARTS LEARNING TOOL - COMPLETE STYLES ===== */

/* ===== MODAL & CONTAINER ===== */
.five-bodyparts-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-bg);
  background-size: 400% 400%;
  animation: fiveBodyPartsGradientShift 15s ease infinite;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
}

.five-bodyparts-modal.active {
  display: flex;
}

@keyframes fiveBodyPartsGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.five-bodyparts-container {
  background: var(--secondary-bg);
  border-radius: 50px;
  padding: 40px 0px;
  max-width: 1500px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.25),
    0 20px 50px rgba(255, 105, 180, 0.2),
    inset 0 2px 5px rgba(255, 255, 255, 0.8);
  /* animation: fiveBodyPartsSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); */
  position: relative;
  /* border: 8px solid; */
  border-image: linear-gradient(135deg, #ff69b4, #ffd700, #00d9ff, #9933ff) 1;
}

@keyframes fiveBodyPartsSlideUp {
  from {
    transform: translateY(100px) scale(0.8);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ===== CLOSE BUTTON ===== */
.five-bodyparts-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-bg);
  color: #1e1e1e;
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  font-size: 3.5rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-weight: bold;
  border: 4px solid white;
  height: auto;
  width: var(--fs-26-60);
  aspect-ratio: 1 / 1;
  line-height: 1;
  font-size: var(--fs-12-24); 
}

.five-bodyparts-close-btn:hover {
  transform: scale(1.2) rotate(90deg);
  box-shadow: 0 15px 40px rgba(255, 107, 157, 0.7);
}

/* ===== HEADER ===== */
.five-bodyparts-header {
  text-align: center;
  margin-bottom: 35px;
  animation: fiveBodyPartsBounceIn 0.8s ease-out;
}

@keyframes fiveBodyPartsBounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.five-bodyparts-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  background: linear-gradient(
    135deg,
    #ff1493 0%,
    #ff8c00 25%,
    #ffd700 50%,
    #00d9ff 75%,
    #9933ff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
  letter-spacing: 3px;
  animation: fiveBodyPartsRainbowText 5s linear infinite;
  background-size: 200% 200%;
}

@keyframes fiveBodyPartsRainbowText {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.five-bodyparts-subtitle {
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: #7b68ee;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(123, 104, 238, 0.3);
}

/* ===== SCORE BAR ===== */
.five-bodyparts-score-bar {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.five-bodyparts-score-item {
  background: white;
  border-radius: 30px;
  padding: 20px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 4px solid var(--primary-bg);
  transition: all 0.3s ease;
}

.five-bodyparts-score-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 182, 217, 0.4);
}

.five-bodyparts-score-item.five-bodyparts-total {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  border-color: #ff8c00;
  animation: fiveBodyPartsPulseGlow 2s infinite;
}

@keyframes fiveBodyPartsPulseGlow {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
  }

  50% {
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.7);
  }
}

.five-bodyparts-score-emoji {
  font-size: clamp(2rem, 4vw, 3rem);
  animation: fiveBodyPartsBounce 2s infinite;
}

@keyframes fiveBodyPartsBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.five-bodyparts-score-label {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: #666;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.five-bodyparts-score-value {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ff1493;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(255, 20, 147, 0.2);
}

.five-bodyparts-total .five-bodyparts-score-value {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== NAVIGATION TABS ===== */
.five-bodyparts-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.five-bodyparts-tab-btn {
  background: linear-gradient(135deg, #e8f5ff 0%, #f0e8ff 100%);
  color: #555;
  border: 3px solid #d0d0d0;
  padding: 18px 30px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  border-radius: 35px;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}

.five-bodyparts-tab-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(123, 104, 238, 0.3);
}

.five-bodyparts-tab-btn.active {
  background: var(--primary-bg);
  color: #1e1e1e;
  border-color: var(--primary-bg);
  /* box-shadow: 0 10px 30px rgba(0, 217, 255, 0.5); */
  transform: translateY(-3px) scale(1.08);
}

.five-bodyparts-tab-emoji {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  animation: fiveBodyPartsRotate 3s infinite;
}

@keyframes fiveBodyPartsRotate {
  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }
}

.five-bodyparts-tab-text {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  text-align: center;
}

/* ===== CONTENT SECTIONS ===== */
.five-bodyparts-content-section {
  display: none;
  animation: fiveBodyPartsFadeSlide 0.5s ease-out;
}

.five-bodyparts-content-section.active {
  display: block;
}

@keyframes fiveBodyPartsFadeSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.five-bodyparts-learn-card {
  background: white;
  border-radius: 40px;
  padding: var(--fs-12-24);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border: 5px solid var(--primary-bg);
}

/* ===== ANIMATED HEADER ===== */
.five-bodyparts-animated-header {
  text-align: center;
  margin-bottom: 35px;
  position: relative;
}

.five-bodyparts-section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, #ff1493 0%, #ff8c00 50%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(255, 20, 147, 0.2);
  animation: fiveBodyPartsWiggle 2s infinite;
}

@keyframes fiveBodyPartsWiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-2deg);
  }

  75% {
    transform: rotate(2deg);
  }
}

.five-bodyparts-section-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: #7b68ee;
  font-weight: 700;
}

.five-bodyparts-sparkles {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 10px;
  animation: fiveBodyPartsSparkle 1.5s infinite;
}

@keyframes fiveBodyPartsSparkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* ===== BODY PARTS THEORY SECTION ===== */
.five-bodyparts-intro-content {
  max-width: 1100px;
  margin: 0 auto;
}

.five-bodyparts-main-image {
  text-align: center;
  margin-bottom: 40px;
}

.five-bodyparts-diagram-image {
  max-width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border: 6px solid #ffd700;
}

.five-bodyparts-introduction {
  background: linear-gradient(135deg, #fff9e6 0%, #ffefba 100%);
  border-radius: 25px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 4px solid #ffd700;
}

.five-bodyparts-intro-text {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: #555;
  line-height: 1.8;
  margin: 0;
}

.five-bodyparts-details-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 30px 0;
}

.five-bodyparts-detail-item {
  background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-left: 6px solid #4ecdc4;
  transition: all 0.3s ease;
}

.five-bodyparts-detail-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.five-bodyparts-part-name {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #ff1493;
  margin-bottom: 15px;
  font-weight: 900;
}

.five-bodyparts-part-description {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: #2d3436;
  line-height: 1.6;
  margin: 0;
}

/* ===== QUIZ SECTION ===== */
.five-bodyparts-quiz-progress {
  margin-bottom: 30px;
}

.five-bodyparts-progress-bar {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  height: 25px;
  overflow: hidden;
}

.five-bodyparts-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00b894 0%, #00cec9 100%);
  border-radius: 20px;
  transition: width 0.5s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.five-bodyparts-quiz-area {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
  border-radius: 25px;
  padding: var(--fs-16-32);
  text-align: center;
}

.five-bodyparts-quiz-question {
  text-align: center;
  margin-bottom: 40px;
}

.five-bodyparts-question-text {
  font-size: var(--fs-16-32);
  color: var(--primary-bg);
  font-weight: bold;
  animation: fiveBodyPartsQuestionPulse 2s infinite;
}

@keyframes fiveBodyPartsQuestionPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.five-bodyparts-quiz-options {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.five-bodyparts-quiz-option {
  cursor: pointer;
  transition: all 0.3s ease;
}

.five-bodyparts-quiz-option:hover {
  transform: translateY(-10px) scale(1.1);
}

.five-bodyparts-option-content {
  background: white;
  border-radius: 25px;
  padding: 1em;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 5px solid #e0e0e0;
  transition: all 0.3s ease;
}

.five-bodyparts-quiz-option:hover .five-bodyparts-option-content {
  border-color: #4ecdc4;
  box-shadow: 0 15px 40px rgba(78, 205, 196, 0.3);
}

.five-bodyparts-option-text {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #2d3436;
}

.five-bodyparts-quiz-option.five-bodyparts-correct-answer
  .five-bodyparts-option-content {
  border-color: #4caf50;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  animation: fiveBodyPartsCorrectPulse 0.6s;
}

@keyframes fiveBodyPartsCorrectPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.five-bodyparts-quiz-option.five-bodyparts-wrong-answer
  .five-bodyparts-option-content {
  animation: fiveBodyPartsWrongShake 0.5s;
}

@keyframes fiveBodyPartsWrongShake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-15px);
  }

  75% {
    transform: translateX(15px);
  }
}

.five-bodyparts-quiz-feedback {
  text-align: center;
  min-height: 80px;
}

.five-bodyparts-feedback-correct,
.five-bodyparts-feedback-wrong {
  display: inline-block;
  padding: 20px 40px;
  border-radius: 25px;
  animation: fiveBodyPartsFeedbackPop 0.5s;
}

@keyframes fiveBodyPartsFeedbackPop {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.five-bodyparts-feedback-correct {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 4px solid #4caf50;
}

.five-bodyparts-feedback-wrong {
  background: linear-gradient(135deg, #fff9e6 0%, #ffefba 100%);
  border: 4px solid #ffd700;
}

.five-bodyparts-feedback-emoji {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  display: block;
  margin-bottom: 10px;
}

.five-bodyparts-feedback-text {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: #2e7d32;
}

.five-bodyparts-feedback-wrong .five-bodyparts-feedback-text {
  color: #ff8c00;
}

/* ===== COMPLETE BUTTON ===== */
.five-bodyparts-complete-btn {
  background: var(--primary-bg);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-family: inherit;
  margin-top: 15px;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-left: auto;
  margin-right: auto;
}

.five-bodyparts-complete-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.five-bodyparts-btn-large {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.five-bodyparts-btn-emoji {
  font-size: clamp(2rem, 4vw, 3rem);
  animation: fiveBodyPartsRotate 3s infinite;
}

/* ===== CONFETTI ===== */
.five-bodyparts-confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10002;
  display: none;
}

.five-bodyparts-confetti-container.active {
  display: block;
}

.five-bodyparts-confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  animation: fiveBodyPartsConfettiFall 3s linear forwards;
  border-radius: 50%;
}

@keyframes fiveBodyPartsConfettiFall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* ===== CUSTOM SCROLLBAR ===== */
.five-bodyparts-container::-webkit-scrollbar {
  width: 14px;
}

.five-bodyparts-container::-webkit-scrollbar-track {
  background: linear-gradient(
    135deg,
    rgba(255, 182, 217, 0.3),
    rgba(168, 230, 207, 0.3)
  );
  border-radius: 10px;
}

.five-bodyparts-container::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--primary-bg) 0%,
    var(--primary-bg) 100%
  );
  border-radius: 10px;
  border: 2px solid white;
}

.five-bodyparts-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff69b4 0%, #ffb6d9 100%);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .five-bodyparts-container {
    padding: 30px;
  }

  .five-bodyparts-quiz-options {
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .five-bodyparts-container {
    padding: 25px;
    border-radius: 35px;
  }

  .five-bodyparts-nav-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .five-bodyparts-tab-btn {
    width: 100%;
    min-width: auto;
  }

  .five-bodyparts-quiz-options {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
